FROM  singulax/ubuntu:14.04

MAINTAINER root  <root.db.root@gmail.com>

ENV   NGINX_LOG_PATH  /var/log/nginx
ENV   NGINX_CNF_PATH  /etc/nginx


RUN  apt-get  update   -y  &&  \
     apt-get  install  make  gcc wget  curl  -y  && \
     apt-get  install  nginx  -y  && \
     rm   -fr  /var/lib/apt/lists/*   && \
     mkdir  /var/log/nginx  -pv
     
ADD  server.crt   /etc/nginx/server.crt
ADD  server.key   /etc/nginx/server.key
EXPOSE  80
EXPOSE  443
WORKDIR   /etc/nginx



ENTRYPOINT ["nginx"]
